﻿@Cofe ?= {}

feedUtils =
   
  parseCategory : (category) ->
    text = $(category).text()
    catAry = text.split('/', 2)
    #console.log catAry
    retVal = {   
      text : text
      type : catAry[0]
      value : catAry[1] }
    retVal

  parseLink : (link) ->
    rel = $(link).attr('rel')
    href = $(link).attr('href')    
    new Cofe.Link('', rel, href, [])


Cofe.feedUtils = feedUtils